package com.example.testhiber.initPackage.business.entity;

import com.example.testhiber.initPackage.business.dic.entity.FolderTitle;
import com.example.testhiber.initPackage.business.dic.entity.PictureType;
import com.example.testhiber.initPackage.config.model.annotation.Des;
import com.example.testhiber.initPackage.config.model.entity.AutoIDModel;
import lombok.Data;

import javax.persistence.*;

@Des("文件夹管理")
@Entity
@Data
@Table(name = "t_folder")
public class Folder extends AutoIDModel {

	private static final long serialVersionUID = 1L;

	@Des("标题")
	@Column(name = "bt", length = 400)
	private String bt;

	@Des("内容")
	@Column(name = "remark", length = 2000)
	private String remark;

	@Des("图片类型")
	@ManyToOne(fetch = FetchType.LAZY )
	private PictureType pictureType;

	@Des("标签")
	@ManyToOne(fetch = FetchType.LAZY )
	private FolderTitle folderTitle;

	@Des("文件夹优先级")
	@Column(name = "wjjyxj", length = 20)
	private String wjjyxj;

	@Des("姓名")
	@Column(name = "name", length = 100)
	private String name;

	@Des("文件夹路径")
	@Column(name = "folderpath", length = 400)
	private String folderpath;




}
